<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
 </head>
 <body>
 <script>
 function jc(n)
	{	
		if (n==1||n==0)
		{
			return 1;
		}
		return jc(n-1)*n
	}
	for (var i=100;i<1000 ;i++ )
	{
		var g = i%10;
		var s = parseInt((i/10)%10);
		var b = parseInt(i/100);
		var gj = jc(g);
		var sj = jc(s);
		var bj = jc(b);
		if (gj+sj+bj==i)
		{
			document.write(i);
		}
		
	}
	

  </script>
 </body>
</html>
